package com.car.dal.dao.rent;

import java.util.List;

import com.car.dal.dao.ibatis.IbatisCommonDao;
import com.car.dal.object.rent.RentDetail;
import com.car.util.Page;

public class RentDetailDaoImp extends IbatisCommonDao<RentDetail, Long> implements RentDetailDao {

	@Override
	public List<RentDetail> getRentDetailByType1(RentDetail rentDetail) {
		return this.queryForEntityList(RentDetail.class, "getRentDetailByType1", rentDetail);
	}

	@Override
	public List<RentDetail> getRentDetailByType(RentDetail rentDetail, Page page) {
		rentDetail.setFirstrownum(page.getFirstrownum());
		rentDetail.setPagesize(page.getPagesize());
		return this.queryForEntityList(RentDetail.class, "getRentDetailByType", rentDetail);
	}

	@Override
	public Integer getCountRentDetailByType(RentDetail rentDetail) {
		return this.queryForInteger("getCountRentDetailByType", rentDetail);
	}

}
